<template include="./plugin/xxx_theme_flarum/view/htm/user.template.htm">
    <slot name="user_body">
        <table class="NotificationGrid">
            <tbody>
                <tr>
                    <td><i class="icon fa fa-fw fa-comment "></i> <?php echo lang('threads');?></td>
                    <td><?php echo $_user['threads'];?></td>
                </tr>
                <tr>
                    <td><i class="icon fa fa-fw fa-comments-o "></i> <?php echo lang('posts');?></td>
                    <td><?php echo $_user['posts'];?></td>
                </tr>
                <tr>
                    <td><i class="icon fa fa-fw fa-diamond"></i> <?php echo lang('digests');?></td>
                    <td><?php echo $_user['digests'];?></td>
                </tr>
                <tr>
                    <td><i class="icon fa fa-fw fa-users "></i> <?php echo lang('user_group');?></td>
                    <td><?php echo $_user['groupname'];?></td>
                </tr>
                <tr>
                    <td><i class="icon fa fa-fw fa-envelope "></i> <?php echo lang('email');?></td>
                    <td><?php echo $_user['email'];?></td>
                </tr>
            </tbody>
        </table>

        <?php if(!empty($group['allowdeleteuser'])) { ?>
            <a role="button" class="Button Button--danger confirm mt-3" data-confirm-text="<?php echo lang('confirm_delete_user');?>" data-method="post" href="<?php echo url("mod-deleteuser-$_user[uid]");?>"><?php echo lang('delete_user');?></a>
        <?php } ?>

        <!--{hook user_index_delete_user_button_after.htm}-->

    </slot>
</template>

<script>
$('li[data-active="user-profile"]').addClass('active');
</script>